package com.bawei.mall.product.controller;

import com.bawei.common.core.domain.R;
import com.bawei.mall.product.domain.Vo.MallProductSku;
import com.bawei.mall.product.service.MallShopService;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Log4j
@RequestMapping("/product")
public class MallShopController {
    @Autowired
    private MallShopService mallShopService;

    @GetMapping("/detail")
    @ApiModelProperty("首页信息展示")
    public R<MallProductSku> detil(@RequestParam Long productId){
        R<MallProductSku> list = mallShopService.detil(productId);
        return list;
    }
}
